<!-- Left side column. contains the logo and sidebar -->
  <aside class="main-sidebar">

    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">

      <!-- Sidebar user panel (optional) -->
      <div class="user-panel">
        <div class="pull-left image">
          <img src="/admin/dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
        </div>
        <div class="pull-left info">
          <p><{$username}></p>
          <!-- Status -->
          <a href="#"><i class="fa fa-circle text-success"></i> 在线</a>
        </div>
      </div>

      <!-- Sidebar Menu -->
      <ul class="sidebar-menu">
        <li <{if $activetitle == "首页"}>class="active"<{/if}>><a href="/admin/index/index"><i class="fa fa-home"></i> <span>首页</span></a></li>
        <{foreach $menus as $menu}>
          <{if $menu.view == true}>
            <li class="treeview <{if $menu.title == $parentmenu}>active<{/if}>">
              <a href="<{$menu.url}>"><i class="fa fa-link"></i> <span><{$menu.title}></span> <i class="fa fa-angle-left pull-right"></i></a>
              <{if isset($menu.sub)}>
              <ul class="treeview-menu">
                <{foreach $menu.sub as $item}>
                  <{if $item.view == true}>
                    <li<{if $item.title == $activetitle}> class="active"<{/if}>><a href="<{$item.url}>"><i class="fa fa-circle-o"></i><span><{$item.title}></span></a></li>
                  <{/if}>
                <{/foreach}>
              </ul>
              <{/if}>
            </li>
          <{/if}>
        <{/foreach}>
        <li <{if $item.title == $activetitle}>class="active"<{/if}>>
          <a href="/admin/login/out"><i class="fa fa-sign-out"></i> <span>退出</span></a>
        </li>
      </ul>
      <!-- /.sidebar-menu -->
    </section>
    <!-- /.sidebar -->
  </aside>